package com.IntelligentCommunity.community.api;

import com.IntelligentCommunity.common.core.constant.ServiceNameConstants;
import com.IntelligentCommunity.common.core.domain.R;
import com.IntelligentCommunity.community.api.factory.RemoteDistrictFallbackFactory;
import com.IntelligentCommunity.community.domain.RealDistrict;
import com.IntelligentCommunity.community.domain.RealSecurityFacilities;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * @Author：作者姓名
 * @Package：com.IntelligentCommunity.es.api
 * @Project：IntelligentCommunity
 * @name：RemoteEsPopulationService
 * @Date：2024/7/18 22:39
 */
@FeignClient(
        contextId = "facilities",
        value = ServiceNameConstants.COMMUNITY_SERVICE,
        fallbackFactory = RemoteDistrictFallbackFactory.class,
        path = "/facilities")
public interface RemoteFacilitiesService {

    /**
     * 根据id查询设备信息
     * @return
     */
    @GetMapping("/getSecurityFacilitiesInfoById/{id}")
    public R<RealSecurityFacilities> getSecurityFacilitiesInfoById(@PathVariable("id") Long id);
}
